package com.apiauto.data_util;

/**
 * yaml数据实体类
 * @author lkk
 *
 */
public class YamlEntity {
	//请求头部信息
	private String headers;
	//请求消息体信息
	private String requestBody;
	
	public String getHeaders() {
		return headers;
	}
	public void setHeaders(String headers) {
		this.headers = headers;
	}
	public String getRequestBody() {
		return requestBody;
	}
	public void setRequestBody(String requestBody) {
		this.requestBody = requestBody;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((headers == null) ? 0 : headers.hashCode());
		result = prime * result + ((requestBody == null) ? 0 : requestBody.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		YamlEntity other = (YamlEntity) obj;
		if (headers == null) {
			if (other.headers != null)
				return false;
		} else if (!headers.equals(other.headers))
			return false;
		if (requestBody == null) {
			if (other.requestBody != null)
				return false;
		} else if (!requestBody.equals(other.requestBody))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "YamlEntity [headers=" + headers + ", requestBody=" + requestBody + "]";
	}	

}
